/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hello.jni;

import wiBase.WiException;
import wiBase.WiObject;
import wiBase.baseObject.Event;

/**
 *
 * @author brother
 */
public class Main {

    public static void main(String[] args) throws WiException {
	long time1 = System.currentTimeMillis();
	HelloWorld hello = new HelloWorld(wiModel.WiModelManager.getInstance());
	hello.setDebug(0);
	hello.parse("D:\\trace.tr");

	long time2 = System.currentTimeMillis();
	System.out.println("time parse:" + (time2 - time1) + " ms");
	
//	// test parse
//	wiEngine.WiEngine engine=wiEngine.WiEngine.getInstance();
//	engine.setTraceFile("D:\\trace.tr");
//	engine.parse();
//	for(WiObject event: engine.getListAllEvents(-1, -1)){
//	    if(!((Event)event).timeReceive.equals("")){
//		System.out.println(((Event)event).timeReceive);
//	    }
//	}
    }
}
